package cn.marinda.totipotentwar.global;

import org.bukkit.configuration.ConfigurationSection;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ScoreData extends AbstractPluginConfig{
    private Map<String, List<String>> scoreData = new HashMap<>();
    /**
     * 摘要插件配置
     *
     *
     */
    public ScoreData() {
        super("score");
        defaultData();
    }

    @Override
    protected void defaultData() {
        ConfigurationSection configurationSection = config.getConfigurationSection("reward");
        for(String key : configurationSection.getKeys(false)){
            List<String> commandList = config.getStringList("reward." + key + ".command");
            scoreData.put(key,commandList);
        }

    }
}
